import Vue from 'vue';

export namespace N_BoilerMonitor {
  export interface TankParameter {
    value: number | boolean;
    code: string;
  }

  export interface BoilerState {
    communicationStatus: TankParameter;
    status: TankParameter; // 0=待机,1=故障,2=运行
    controlButtons: {
      start: TankParameter; // 1=启动
      stop: TankParameter; // 2=停止
      reset: TankParameter; // 3=复位
      mute: TankParameter; // 4=消音
    };
    feedPump: {
      status: TankParameter; // 100=启动,101=停止
      mode: TankParameter; // 102=自动,103=手动
    };
    sensors: {
      lowLimitWaterLevel: TankParameter; // 0=断开,1=闭合
      lowWaterLevel: TankParameter;
      highWaterLevel: TankParameter;
      highWaterAlarm: TankParameter;
      wallOverTemp: TankParameter;
      startStopControl: TankParameter;
      overPressureAlarm: TankParameter;
    };
  }
  export interface SteamForm {
    conductivityUpper: TankParameter;
    conductivity: TankParameter;
    manualWaterTime: TankParameter;
    manualWaterTimer: TankParameter;
    autoSwitch: TankParameter;
    valveSwitch: TankParameter;
    returnWaterSwitch: TankParameter; // 回水切换阀
  }
  export interface cBoilerMonitor extends Vue {
    ecDetCodes: string[];
    updateData: () => void;
  }
}
